import http from '@/http/index'

export function toLogin(data) {
  return http({
      url: `/login?user=${data}`,
      method: 'get',
  })
}

export function userInfo(data) {
  return http({
    url: `/userInfo?user=${data}`,
    method: 'get',
})
}

export function logout() {
  return http({
    url: '/logout',
    method: 'post'
  })
}


